#include <iostream>
#include "exception_test.hpp"

void may_throw(bool trigger) {
    if (trigger) throw std::runtime_error("Triggered exception");
}

void exception_test() {
    try {
        may_throw(true);
    } catch (const std::exception& e) {
        std::cout << "Caught exception: " << e.what() << "\n";
    }
}
